package PRUEBAS;

import java.util.HashMap;
import java.util.Map;

public class VaciarCollectionsTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		Map<Integer, String> hm = new HashMap<Integer, String>();
		
		int i = 1; 
		int j = 2;
		
		System.out.println(hm.size());
		
		hm.put(i, "una");
		hm.put(j, "dos");		
		
		System.out.println(hm.size());
		
		hm.keySet().removeAll( hm.keySet() );

		System.out.println(hm.size());
		
		hm.put(i, "una");
		hm.put(j, "dos");
		
		System.out.println(hm.size());
		
		hm.clear();
		
		System.out.println(hm.size());		
	}

}
